package day4;

import java.util.Scanner;

//https://www.nowcoder.com/practice/02d8d42b197646a5bbd0a98785bb3a34?tpId=122&tqId=33679&ru=/exam/oj
public class code2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a_b1 = scanner.nextInt();
        int b_c1 = scanner.nextInt();
        int a_b2 = scanner.nextInt();
        int b_c2 = scanner.nextInt();

        int A = (a_b1 + a_b2)/2;
        int B = (b_c1 + b_c2)/2;

        int c1 = B - b_c1;
        int c2 = b_c2 - B;
        if(A - B != a_b1) {
            System.out.println("No");
            return;
        }
        if(c1 != c2) {
            System.out.println("No");
            return;
        }
        System.out.println(A + " " + B + " " + c1);
    }
}
